<template>
    <div>
        <h2>这是主页面</h2>
        <h2>这是主页面</h2>
        <h2>这是主页面</h2>
        <h2>这是主页面</h2>
        <h2>这是主页面</h2>
        <h2>这是主页面</h2>
        <article>哈哈哈哈哈哈哈</article>
        <span>哈哈哈哈哈哈哈</span>
        <p>
            <button @click="exit">退出登录</button>
            <button @click="$router.push('/home/edit')">去编辑页面</button>
        </p>
    </div>
</template>

<script>
    export default {
        methods: {
            exit() {
                sessionStorage.setItem('token','')
                this.$router.push('/login')
            }
        }
    }  
</script>

<style scoped>
    article{
        font-size:2px;
        transform:scale(0.6);   
    }
    span{
        font-size: 12px;
    }
</style>